/**
 * 
 */
package com.nashuju.web.util;


import java.util.Date;

/**
 * @author xiaoren
 *
 */
public class TimeUtil {
	
	
	
	public static boolean isAfterSomeHours (Date originTime , int SomeHours) {
		if (originTime!=null) {
			long now = new Date().getTime();
			long diff = now - originTime.getTime();
			if (diff >= SomeHours*(1000*60*60) ) {
				return true;
			} else {
				return false;
			}
		}
		else
		{
			return false;
		}
		
	}
	
	
	
}
